<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'doReg.jsp' starting page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <h1>请提交的注册信息是：</h1>
	<%
	  request.setCharacterEncoding("utf-8");
	   String ip=request.getRemoteHost();
	   String name=request.getParameter("uname");
	   String p=request.getParameter("pass");
	   String e=request.getParameter("youremail");
	   String [] from=request.getParameterValues("from");
	   //from有没有可能是 null?
	   out.print("了解的渠道：");
	   for(int i=0;from!=null&&i<from.length;i++){
	   		out.print(from[i]+"&nbsp;");
	   }
	   out.print("<br/>");
	  out.print("您输入的是：name="+name+",密码是"+p+",电邮是"+e+"<br/>");
	  out.print("您的ip是"+ip+",您来自四川电信。。。");   
	 %>
	  <%-- <%
	  	request.getRequestDispatcher("showdate.jsp").forward(request, response);
	   %> --%>
  </body>
</html>
